<?php

namespace Modules\Task\Providers;

use Illuminate\Foundation\Support\Providers\EventServiceProvider;

class TotemEventServiceProvider extends EventServiceProvider
{
    protected $listen = [
        'Modules\Task\Events\Created'     => ['Modules\Task\Listeners\BustCache', 'Modules\Task\Listeners\BuildCache'],
        'Modules\Task\Events\Updated'     => ['Modules\Task\Listeners\BustCache', 'Modules\Task\Listeners\BuildCache'],
        'Modules\Task\Events\Activated'   => ['Modules\Task\Listeners\BustCache', 'Modules\Task\Listeners\BuildCache'],
        'Modules\Task\Events\Deactivated' => ['Modules\Task\Listeners\BustCache', 'Modules\Task\Listeners\BuildCache'],
        'Modules\Task\Events\Deleting'    => ['Modules\Task\Listeners\BustCacheImmediately'],
    ];
}
